//
//  ArticlesModel.m
//  chanyou
//
//  Created by 高爽 on 15-1-4.
//  Copyright (c) 2015年 wanli. All rights reserved.
//

#import "ArticlesModel.h"

@implementation ArticlesModel

- (void)dealloc
{
    [_image_url release];
    // [_sectionId release];
    [_name release];
    [_sectionTitle release];
    [super dealloc];
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.image_url = _image_url;
        self.sectionId = _sectionId;
        self.name = _name;
        self.sectionTitle = _sectionTitle;
    }return self;
}
- (instancetype)initWithName:(NSString *)name url:(NSString *)url sectionId:(NSInteger)sectionId
{
    self = [super init];
    if (self) {
        self.image_url = url;
        self.sectionId = sectionId;
        self.name = name;
    }
    return self;
}

+ (instancetype)articlesWithName:(NSString *)name url:(NSString *)url sectionId:(NSInteger)sectionId
{
    ArticlesModel *articles = [[ArticlesModel alloc] initWithName:name url:url sectionId:sectionId];
    return [articles autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}


@end
